using System;
using Core.Base;
using Core.Contracts.Enums;
using Core.Contracts.Interfaces;
using Core.Extensions;
using Core.Features;
using Core.Resources;

namespace Core.Items.Robots
{
    
    public sealed class Intakt : RobotBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Items.Robots.Intakt"/> class.
        /// </summary>
        public Intakt()
            : base(
            "Intakt",
            Traduction.desc_intakt,
            FactionsEnum.Thelodica,
            RobotTechnologyLevel.Mk1,
            RobotSizesEnum.Light,
            new ISlot[]
                {
                    new Slot(0,SlotGroupsEnum.Chassis,SlotTypesEnum.Turret|SlotTypesEnum.Misc|SlotTypesEnum.Industrial, SizesEnum.Small),
                    new Slot(1,SlotGroupsEnum.Chassis,SlotTypesEnum.Turret|SlotTypesEnum.Misc|SlotTypesEnum.Industrial, SizesEnum.Small),
                    new Slot(2,SlotGroupsEnum.Chassis,SlotTypesEnum.Misc, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules)
                },
            new IFeature<object>[]
                {
                    new AccumulatorCapacity<double>(300),
                    new AccumulatorRechargeTime<double>(120),
                    new CpuPerformance<double>(190),
                    new ReactorPerformance<double>(175),
                    new ArmorAmount<double>(675),
                    new ChemicalResistance<double>(30),
                    new KineticResistance<double>(150),
                    new SeismicResistance<double>(10),
                    new ThermalResistance<double>(45),
                    new ChemicalEHP<double>(0),
                    new KineticEHP<double>(0),
                    new SeismicEHP<double>(0),
                    new ThermalEHP<double>(0),
                    new SurfaceHitSize<double>(2.75),
                    new InterferenceEmission<double>(5),
                    new InterferenceMinimum<double>(100),
                    new InterferencePeak<double>(350),
                    new InterferenceRadius<double>(100),
                    new LockingRange<double>(300),
                    new LockingTime<double>(12.50),
                    new MaximumTargets<double>(4),
                    new MissileGuidanceFailure<double>(0.1),
                    new SensorStrength<double>(100),
                    new SignalDetection<double>(70),
                    new SignalMasking<double>(130),
                    new ReloadingTime<double>(10),
                    new CargoCapacity<double>(3),
                    new RobotMass<double>(4950),
                    new SlopeCapacity<double>(56),
                    new TopSpeed<double>(90),
                    new Volume<double>(11),
                    new DemobilizerResistance<double>(0),
                    new CriticalHitChance<double>(0)
                },
            new IBonusModifier[]
                {
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Module, FeaturesEnum.SensorSuppressorLockingRange, -0.02){ Unit = UnitsEnum.Percentage, DisplayName = "Sensor suppressor locking range"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Module, FeaturesEnum.SensorSuppressorLockingTime, 0.03){ Unit = UnitsEnum.Percentage, DisplayName = "Sensor suppressor locking time"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Module, FeaturesEnum.SensorSuppressorAccumulatorUsage, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Sensor suppressor accumulator usage"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Module, FeaturesEnum.DemobilizerAccumulatorUsage, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Demobilizer accumulator usage"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Module, FeaturesEnum.EcmAccumulatorUsage, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "ECM accumulator usage"}, 
                    new BonusModifier<SpecOpsRobotControl>( FeatureTypesEnum.Robot, FeaturesEnum.SignalMasking, 0.01){ Unit = UnitsEnum.Percentage, DisplayName = "Signal Masking Amount"},
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Robot, FeaturesEnum.ChemicalResistance, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Chemical resistance"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Robot, FeaturesEnum.SeismicResistance, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Seismic resistance"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Robot, FeaturesEnum.KineticResistance, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Kinetic resistance"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Robot, FeaturesEnum.ThermalResistance, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Thermal resistance"}, 

                },
            new ICondition<IExtension>[]
                {
                    new ExtensionCondition<BasicRobotics>(3), 
                    new ExtensionCondition<ThelodicaRobotControl>(3),
                    new ExtensionCondition<SpecOpsRobotControl>(1),
                })
        {
        }
    }
}